﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Default.Master"
    CodeBehind="Default.aspx.vb" Inherits="ICLI._Default3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
         </h2>
    <table style="width: 100%" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table cellpadding="0" cellspacing="0" style="padding: 5px; width: 100%">
                    <tr>
                        <td style="width: 30%">
                <asp:Image ID="imgNoticiaDestaque" runat="server" Height="120px" 
                    Width="150px" />
                        </td>
                        <td align="left" valign="top">
                            <table cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td>
                            <asp:HyperLink ID="hplNoticiaTitulo" runat="server" 
                                CssClass="textoNoticiaDestaque">[hplNoticiaTitulo]</asp:HyperLink>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                            <asp:HyperLink ID="hplNoticiaManchete" runat="server" 
                                CssClass="textoNoticiaDestaqueManchete">[hplNoticiaManchete]</asp:HyperLink>
                                    </td>
                                </tr>
                            </table>
                            <asp:AccessDataSource ID="NoticiaDestaque" runat="server" 
                                DataFile="~/App_Data/Banco.mdb" 
                                SelectCommand="SELECT [Titulo], [Manchete], [Imagem] FROM [Noticias] WHERE ([Imagem] &lt;&gt; ?)">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="&quot;&quot;" Name="Imagem" Type="String" />
                                </SelectParameters>
                            </asp:AccessDataSource>
                        </td>
                    </tr>
                    </table>
            </td>
        </tr>
        <tr>
            <td style="padding-left: 10px">
                <asp:DataList ID="dtlBannerGrande" runat="server" Width="100%">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink3" runat="server" ImageUrl='<%# Eval("Img") %>' NavigateUrl='<%# Eval("URL") %>'
                            ToolTip='<%# Eval("toolTip") %>' Target="_blank">[HyperLink3]</asp:HyperLink>
                    </ItemTemplate>
                    <SeparatorTemplate>
                        <div style="height: 5px; border: 0px">
                        </div>
                    </SeparatorTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td class="separador">
            </td>
        </tr>
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
           <!-- -->     <td style="width:232px">
                            <asp:DataList ID="DataList2" runat="server" CssClass="textoNoticia" 
                                Height="180px" DataSourceID="AccessNoticias" Width="100%">
                                        <HeaderTemplate>
                                        <table style="width:100%">
                                        <tr>
                                        <td class="separador">
                                            <asp:Label ID="Label13" runat="server" CssClass="headerNoticia" Font-Bold="True" Text="Outras Notícias" />
                                        </td>
                                        </tr>
                                        </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td valign="top" style="width: 5%;">
                                                        <asp:Label ID="lblIDNoticia" runat="server" Text='<%# Eval("IDNoticia") %>' Visible="False"></asp:Label>
                                                    </td>
                                                    <td valign="top">
                                                        - <asp:HyperLink ID="hplTitulo" runat="server" NavigateUrl='<%# "VisualizaNoticia.aspx?IDnoticia=" & Eval("IDNoticia") %>'
                                                            Text='<%# Eval("Titulo") %>'></asp:HyperLink>
                                                        <asp:Label ID="lblManchete" runat="server" Text='<%# Eval("Manchete") %>' Visible="False"></asp:Label>
                                                    </td>
                                                    <td valign="top">
                                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "VisualizaNoticia.aspx?IDnoticia=" & Eval("IDNoticia") %>'
                                                            Visible="False">Mais...</asp:HyperLink>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                <FooterTemplate>
                                    <table align="right" cellpadding="0" cellspacing="0" style="width: 100%">
                                        <tr>
                                            <td align="right">
                                                <asp:HyperLink ID="hlkMais" runat="server" Font-Underline="true" NavigateUrl="~/Noticias.aspx" CssClass="textoNoticia"
                                                    Text="Mais Notícias">
                                                </asp:HyperLink>
                                            </td>
                                        </tr>
                                    </table>
                                </FooterTemplate>
                            </asp:DataList>
                        </td>
                        <td class="divisor">
                        </td>
         <!-- -->       <td valign="top" align="center">
                            <asp:DataList ID="dtListAlbuns" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                                Width="90%" Height="180px" CssClass="textoNoticia">
                                <HeaderTemplate>
                                        <table style="width:100%">
                                        <tr>
                                        <td align="left" class="separador">
                                            <asp:Label ID="Label13" runat="server" CssClass="headerNoticia" Font-Bold="True" Text="Últimas Fotos" />
                                        </td>
                                        </tr>
                                        </table>
                                </HeaderTemplate>
                                <FooterTemplate>
                                    <table align="right" cellpadding="0" cellspacing="0" 
                                        style="width: 100%; padding-top: 5px;">
                                        <tr>
                                            <td align="right">
                                                <asp:HyperLink ID="hlkMais" runat="server" NavigateUrl="~/GaleriaDeFotos.aspx" CssClass="textoNoticia"
                                                    Text="Ir para a galeria">
                                                </asp:HyperLink>
                                            </td>
                                        </tr>
                                    </table>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlFoto" runat="server" Height="30px" ImageUrl='<%# "./thumbs.aspx?foto=" & eval("Link") %>'
                                        Width="50px" ToolTip='<%# eval("Nome") %>' NavigateUrl='<%# "./GaleriaDeFotos.aspx?IDAlbum=" & eval("IDAlbum") %>'>[hlFoto]</asp:HyperLink>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" class="separador">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="3" align="center">
                            <asp:DataList ID="dtlBannerMedio00" runat="server" Width="100%" RepeatColumns="2" RepeatDirection="Horizontal">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink3" runat="server" ImageUrl='<%# Eval("Img") %>' NavigateUrl='<%# Eval("URL") %>'
                                        ToolTip='<%# Eval("toolTip") %>' Target="_blank">[HyperLink3]</asp:HyperLink>
                                </ItemTemplate>
                                <SeparatorTemplate>
                                    <div style="height: 5px; border: 0px">
                                    </div>
                                </SeparatorTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <asp:DataList ID="dtListHistorico" runat="server" CssClass="textoNoticia" 
                                Height="180px" Width="100%">
                                        <HeaderTemplate>
                                        <table style="width:100%">
                                        <tr>
                                        <td class="separador" valign="top">
                                            <asp:Label ID="Label13" runat="server" CssClass="headerNoticia" 
                                                Font-Bold="True" Text="História do ICLI" />
                                        </td>
                                        </tr>
                                        </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td valign="top" style="width: 5%;">
                                                        <asp:Label ID="lblIDNoticia" runat="server" Text='<%# Eval("IDNoticia") %>' Visible="False"></asp:Label>
                                                    </td>
                                                    <td valign="top">
                                                        - <asp:HyperLink ID="hplTitulo" runat="server" NavigateUrl='<%# "VisualizaNoticia.aspx?IDNoticia=" & Eval("IDNoticia") %>'
                                                            Text='<%# Eval("Titulo") %>'></asp:HyperLink>
                                                        <asp:Label ID="lblManchete" runat="server" Text="" Visible="False"></asp:Label>
                                                    </td>
                                                    <td valign="top">
                                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl=""
                                                            Visible="False">Mais...</asp:HyperLink>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                <FooterTemplate>
                                    <table align="right" cellpadding="0" cellspacing="0" style="width: 100%">
                                        <tr>
                                            <td align="right">
                                                <asp:HyperLink ID="hlkMais" runat="server" Font-Underline="True" 
                                                    NavigateUrl="~/Noticias.aspx" CssClass="textoNoticia"
                                                    Text="Mais Notícias" Visible="False"></asp:HyperLink>
                                            </td>
                                        </tr>
                                    </table>
                                </FooterTemplate>
                            </asp:DataList>
                        </td>
                        <td class="divisor">
                            </td>
                        <td align="center" valign="top">
                            <asp:DataList ID="dtListTunelTempo" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                                Width="90%" Height="180px" CssClass="textoNoticia">
                                <HeaderTemplate>
                                        <table style="width:100%">
                                        <tr>
                                        <td align="left" class="separador" valign="top">
                                            <asp:Label ID="Label13" runat="server" CssClass="headerNoticia" Font-Bold="True" Text="Escotilha do Tempo" />
                                        </td>
                                        </tr>
                                        </table>
                                </HeaderTemplate>
                                <FooterTemplate>
                                    <table align="right" cellpadding="0" cellspacing="0" 
                                        style="width: 100%; padding-top: 5px;">
                                        <tr>
                                            <td align="right">
                                                <asp:HyperLink ID="hlkMais" runat="server" NavigateUrl='<%# "./GaleriaDeFotos.aspx?IDAlbum=" & eval("IDAlbum") %>' CssClass="textoNoticia"
                                                    Text="Mais" Visible="false">
                                                </asp:HyperLink>
                                            </td>
                                        </tr>
                                    </table>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlFoto" runat="server" Height="30px" ImageUrl='<%# "./thumbs.aspx?foto=" & eval("Link") %>'
                                        Width="50px" ToolTip='<%# eval("Nome") %>' NavigateUrl='<%# "./GaleriaDeFotos.aspx?IDAlbum=" & eval("IDAlbum") %>'>[hlFoto]</asp:HyperLink>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                    <tr>
                        <td class="separador" colspan="3">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="center" colspan="3">
                            <asp:DataList ID="dtlBannerMedio01" runat="server" Width="100%" 
                                RepeatColumns="2" RepeatDirection="Horizontal">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink3" runat="server" ImageUrl='<%# Eval("Img") %>' NavigateUrl='<%# Eval("URL") %>'
                                        ToolTip='<%# Eval("toolTip") %>' Target="_blank">[HyperLink3]</asp:HyperLink>
                                </ItemTemplate>
                                <SeparatorTemplate>
                                    <div style="height: 5px; border: 0px">
                                    </div>
                                </SeparatorTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" class="separador" colspan="3">
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <asp:AccessDataSource ID="AccessNoticias" runat="server" DataFile="~/App_Data/Banco.mdb"
        SelectCommand="SELECT TOP 5 * FROM [Noticias] ORDER BY [Data] DESC"></asp:AccessDataSource>
</asp:Content>
